package com.kgc.basicprovider.controller;

import com.kgc.basic.remote.PublicApi;
import com.kgc.basicprovider.service.PublicService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class PublicController implements PublicApi {

    private Logger logger = LoggerFactory.getLogger(PublicController.class);

    @Resource
    public PublicService publicService;

    @Override
    public String getCode(String table) {
        logger.info("getCode start table:" + table);
        return publicService.getCode(table);
    }
}
